<template>
  <view>
    <view class="hrader">
      <image
        src="../../../static/bback.png"
        class="goback"
        @click="jumpHome"
        mode=""
      />
      支付结果
    </view>
    <view class="icon">
      <image
        src="../../../static/y1.png"
        mode="widthFix"
        style="width: 120rpx"
      ></image>
    </view>
    <view class="success">支付成功</view>
    <view class="title">本次支付已成功，详细信息进入消费明细查看</view>
    <view class="anniu" style="display: flex; justify-content: center">
      <view class="btn" @click="jumpHome">返回主页</view>
      <view class="btn" @click="jumpMybill">我的账单</view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    jumpHome() {
      uni.switchTab({
        url: "../../index/index",
      });
    },
    jumpMybill() {
      uni.navigateTo({
        url: "../Mybill/Mybill",
      });
    },
  },
};
</script>

<style lang="scss">
page {
  background: #ffffff;
}
.hrader {
  width: 100%;
  height: 88rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  position: relative;
  font-size: 36rpx;
  font-weight: 500;
  color: #333333;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  border-bottom: 20rpx solid #f4f4f4;
  .goback {
    position: absolute;
    width: 22rpx;
    height: 34rpx;
    left: 28rpx;
  }
}
.icon {
  display: flex;
  justify-content: center;
  margin-top: 88rpx;
  padding-top: 154rpx;
  box-sizing: border-box;
}
.success {
  display: flex;
  justify-content: center;
  padding-top: 40rpx;
  font-size: 30rpx;
  font-weight: 500;
  color: #333333;
}
.title {
  display: flex;
  justify-content: center;
  font-weight: 400;
  color: #999999;
  font-size: 26rpx;
  padding-top: 20rpx;
}
.anniu {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 380rpx;
}
.btn {
  display: block;
  width: 350rpx;
  height: 74rpx;
  font-size: 30rpx;
  font-weight: 500;
  color: #ffffff;
  text-align: center;
  line-height: 74rpx;
  margin: 0 auto 30rpx;
  background-color: #c52b2e;
  border-radius: 37px;
}
.btn:nth-child(2) {
  background: none;
  border: 1px solid #c52b2e;
  color: #c52b2e;
  border-radius: 37px;
}
</style>
